/*
 * StoreBO.java
 *
 * Created on March 7, 2007, 1:16 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package Data;

/**
 *
 * @author Danny Beutler
 */
public class StoreBO {
    private String id;
    private String location;
    private String manager;
    private String phone;
    private String address;
    private String city;
    private String state;
    private String zip;
    private boolean alreadyInDB=false;
    private boolean dirty =true;
    /** Creates a new instance of StoreBO */
    public StoreBO(String GUID) {
        this.id=GUID;
    }
    
    /** Gets the payment GUID */
    public String getId() {
        return id;
    }
    
    /** Gets the store location */
    public String getLocation() {
        return location;
    }
    
    /** Sets the payment transaction */
    public void setLocation(String location) {
        dirty=true;
        this.location = location;
    }
        
    /** Gets the store manager */
    public EmployeeBO getManager() throws DataException{
        EmployeeBO manager = EmployeeDAO.getInstance().read(this.manager);
        return manager;
    }
    
    /** Sets the store manager */
    public void setManager(String manager) {
        dirty=true;
        this.manager = manager;
    }
        
    /** Gets the store phone */
    public String getPhone() {
        return phone;
    }
    
    /** Sets the store phone */
    public void setPhone(String phone) {
        dirty=true;
        this.phone = phone;
    }
        
    /** Gets the store address */
    public String getAddress() {
        return address;
    }
    
    /** Sets the store address */
    public void setAddress(String address) {
        dirty=true;
        this.address = address;
    }
        
    /** Gets the store city */
    public String getCity() {
        return city;
    }
    
    /** Sets the store city */
    public void setCity(String city) {
        dirty=true;
        this.city = city;
    }
        
    /** Gets the store state */
    public String getState() {
        return state;
    }
    
    /** Sets the store state */
    public void setState(String state) {
        dirty=true;
        this.state = state;
    }
        
    /** Gets the store zip */
    public String getZip() {
        return zip;
    }
    
    /** Sets the store zip*/
    public void setZip(String zip) {
        dirty=true;
        this.zip = zip;
    }
        
    /** Gets the store alreadyInDB variable */
    public boolean isAlreadyInDB() {
        return alreadyInDB;
    }
    
    /** Sets the store alreadyInDB variable*/
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
        
    /** Gets the store dirty variable */
    public boolean isDirty() {
        return dirty;
    }
    
    /** Sets the store dirty variable */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    
}
